/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pl.raflik.queryxml.serializer.standard;

import java.io.OutputStream;
import java.util.List;
import pl.raflik.queryxml.lib.exception.NullArgumentException;
import pl.raflik.queryxml.serializer.QueryResultSerializeException;
import pl.raflik.queryxml.serializer.QueryResultSerializer;

/**
 *
 * @author raflik
 */
public abstract class AbstractTransformer implements QueryResultSerializer {

    protected void checkSerializeInvocation(List<?> queryResult, OutputStream os, Object param) throws QueryResultSerializeException {
        if (queryResult == null) {
            throw new NullArgumentException("nodeList");
        }
        if (os == null) {
            throw new NullArgumentException("os");
        }
    }
}
